﻿using System;
using System.Collections.Generic;

namespace Rj_GsInsurance.Server.DataBaseContext.Entities
{
    /// <summary>
    /// 住院申请单
    /// </summary>
    public partial class MzysTbMzzysqd
    {
        public int Id { get; set; }
        /// <summary>
        /// 就诊流水号
        /// </summary>
        public long Jzlsh { get; set; }
        /// <summary>
        /// 姓名
        /// </summary>
        public string Xm { get; set; } = null!;
        /// <summary>
        /// 性别
        /// </summary>
        public int? Xb { get; set; }
        /// <summary>
        /// 门诊号
        /// </summary>
        public string Mzh { get; set; } = null!;
        /// <summary>
        /// 卡号
        /// </summary>
        public string? Kh { get; set; }
        /// <summary>
        /// 证件号
        /// </summary>
        public string? Zjh { get; set; }
        /// <summary>
        /// 证件类型
        /// </summary>
        public string? Zjlx { get; set; }
        public int? Cwys { get; set; }
        /// <summary>
        /// 操作人
        /// </summary>
        public int? Czr { get; set; }
        /// <summary>
        /// 操作时间
        /// </summary>
        public DateTime? Czsj { get; set; }
        /// <summary>
        /// 申请单内容
        /// </summary>
        public string? Sqdxml { get; set; }
        /// <summary>
        /// 病区id(拟入病区)
        /// </summary>
        public int? DeptId { get; set; }
        /// <summary>
        /// 病区名称
        /// </summary>
        public string? DeptName { get; set; }
        /// <summary>
        /// 诊断编码
        /// </summary>
        public string? Zdbm { get; set; }
        /// <summary>
        /// 诊断名称
        /// </summary>
        public string? Zdmc { get; set; }
        /// <summary>
        /// 入院时间
        /// </summary>
        public DateTime? InHospTime { get; set; }
        /// <summary>
        /// 身份证号
        /// </summary>
        public string? Sfzh { get; set; }
        /// <summary>
        /// 联系电话
        /// </summary>
        public string? Sjhm { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public int? Status { get; set; }
        /// <summary>
        /// 实际入院时间
        /// </summary>
        public DateTime? Sjrysj { get; set; }
        /// <summary>
        /// 病床
        /// </summary>
        public string? Bed { get; set; }
        /// <summary>
        /// 审核人
        /// </summary>
        public int? ReviewDoctor { get; set; }
        /// <summary>
        /// 审核时间
        /// </summary>
        public DateTime? ReviewTime { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public int? CreateId { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }
        /// <summary>
        /// 医院编码（申请院区）
        /// </summary>
        public int? HospitalCode { get; set; }
        /// <summary>
        /// 医生开检查检验
        /// </summary>
        public bool? IssueInspectStatus { get; set; }
        /// <summary>
        /// 医生开告知单
        /// </summary>
        public bool? NoticeStatus { get; set; }
        /// <summary>
        /// 医生查检查检验
        /// </summary>
        public bool? QueryInspectStatus { get; set; }
        /// <summary>
        /// 医生填风险评估单
        /// </summary>
        public bool? RiskStatus { get; set; }
        /// <summary>
        /// 患者签名
        /// </summary>
        public bool? PatSignStatus { get; set; }
        /// <summary>
        /// 出入院审核
        /// </summary>
        public bool? IoStatus { get; set; }
        /// <summary>
        /// 病区审核
        /// </summary>
        public bool? WardStatus { get; set; }
        /// <summary>
        /// 办理入院
        /// </summary>
        public bool? HandleStatus { get; set; }
        /// <summary>
        /// 病假单内容
        /// </summary>
        public string? Bjdnr { get; set; }
        /// <summary>
        /// 入院科室
        /// </summary>
        public int? IoDeptId { get; set; }
        /// <summary>
        /// 入院科室名称
        /// </summary>
        public string? IoDeptName { get; set; }
        /// <summary>
        /// 入院医院编码
        /// </summary>
        public int? IoHospitalCode { get; set; }
        /// <summary>
        /// 入院类型，1：自愿、2：非自愿、3：紧急
        /// </summary>
        public int? IoType { get; set; }
        /// <summary>
        /// 申请科室id
        /// </summary>
        public int? ReqDeptId { get; set; }
        /// <summary>
        /// 申请科室名称
        /// </summary>
        public string? ReqDeptName { get; set; }
        /// <summary>
        /// 提交入院申请，0：否，1：是
        /// </summary>
        public bool? SubmitStatus { get; set; }
        /// <summary>
        /// 患者id
        /// </summary>
        public int? PatId { get; set; }
        /// <summary>
        /// 风险评估单双签标识
        /// </summary>
        public bool? RisSignStatus { get; set; }
    }
}
